﻿using Entity;
using System;
using System.Collections.Generic;
using System.Text;
using Utils;

namespace DataBaseConnect.App
{
    public interface IFlowAppService
    {
        /// <summary>
        /// 获取所有的流程和根据流程名称查询
        /// </summary>
        /// <param name="Name">流程名称</param>
        /// <returns></returns>
        List<Flow> GetFlowList(string Name);

        /// <summary>
        /// 根据主键获取流程
        /// </summary>
        /// <param name="Id">id</param>
        /// <returns></returns>
        List<Flow> GetFlowId(int Id);

        /// <summary>
        /// 添加流程信息
        /// </summary>
        /// <param name="Input">参数实体</param>
        /// <returns></returns>
        ReceiveStatus AddFlowMsg(Flow Input);

        /// <summary>
        /// 获取所有流程类型
        /// </summary>
        /// <returns></returns>
        List<FlowType> GetFlowTypesAll();
    }
}
